Generating a Web Service Operation on an Email Model |
|
Before you begin this task:
You must already have created an E-mail Model to generate a Web service Operation.
You can generate Web service Operations on an E-mail Model using the Web service definition wizard and use them in a Business Process Model.
Note: In runtime, Web service Interfaces are being referred as Method Sets and Web service Operations are referred as Methods.
- From the Workspace Documents (Explorer), right-click your project and select New > Other. The New Process Platform Document window appears.
- Click (Web Service) from the New Process Platform Document window. The Untitled Web Service - Web Service wizard is displayed.
- Click the Select the source drop-down box and select Email Model from the list.
- Type the appropriate name and description for the Web service in the Name and Description fields of the wizard.
- Type the namespace for the Web service operation and click Next.
- Click next to the Select a Email Model field, select the required Email Model from the Select Email Model dialog box that appears and click OK. The name of the selected Email Model is displayed in the Select a Email Model field.
- Provide the names of the Web service Interface and Web service Operation and click Finish
A Web service Properties page appears, displaying the target namespace, its prefix and the location URI in the Target Namespace, TNS Prefix, and Location URI fields.
The E-mail Model can now be used as a Web service operation and is displayed under Workspace Documents (Explorer) > <project> folder.
After you complete:
Right-click the E-mail Model <Web service operation> in Workspace Documents (Explorer) and click Publish to Organization to make it available to an organization.
Note:
- To work with Web services generated on E-mail Models, the Notification Service Group needs to be available in that organization.
- If you encounter the 'Service Group Lookup Failure' error on executing a Web service generated on the E-mail Model, you can do one of the following:
- Add the corresponding Method Set (Web Service Interface) manually to the Notification Service Group.
- Alternatively, you can attach the Notification Service Group to the Web service Interface in the project.